<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App'
  // created () {
  //   function showPosition (position) { // showPosition() 函数获得并显示经度和纬度
  //     console.log('纬度: ' + position.coords.latitude + '<br />经度: ' + position.coords.longitude)
  //     console.log(position.coords.latitude + ',' + position.coords.longitude)
  //   }
  //   if (navigator.geolocation) {
  //     navigator.geolocation.getCurrentPosition(showPosition)
  //   } else {
  //     alert('浏览器不支持地理定位')
  //   }
  // }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
</style>
